package com.entity;

import java.math.BigDecimal;

/**
 * @author cj
 * @date 2019/9/27
 */
public class Employee {
  private Integer id;
  private BigDecimal salary;
  private Integer gender;
  private String username;
  private Integer deptId;
  private String userName;

  private int noMapping;

  private String unknown;

  private Dept dept;


  public Employee() {
    System.out.println("---默认 构造函数");
  }

  public Employee(BigDecimal salary, String username) {
    System.out.println("---salary,username 构造函数");
    this.salary = salary;
    this.username = username;
  }

  public Employee(Integer id, String username) {
    System.out.println("---id,username 构造函数");
    this.id = id;
    this.username = username;
  }

  public Employee(BigDecimal salary, Integer gender, String username, Integer deptId) {
    System.out.println("---salary,gender,username,deptid 构造函数");
    this.salary = salary;
    this.gender = gender;
    this.username = username;
    this.deptId = deptId;
  }

  public String getUserName() {
    return userName;
  }

  public void setUserName(String userName) {
    this.userName = userName;
  }

  public int getNoMapping() {
    return noMapping;
  }

  public void setNoMapping(int noMapping) {
    this.noMapping = noMapping;
  }

  public String getUnknown() {
    return unknown;
  }

  public void setUnknown(String unknown) {
    this.unknown = unknown;
  }

  public Dept getDept() {
    return dept;
  }

  public void setDept(Dept dept) {
    this.dept = dept;
  }

  public Integer getId() {
    return id;
  }

  public void setId(Integer id) {
    this.id = id;
  }

  public BigDecimal getSalary() {
    return salary;
  }

  public void setSalary(BigDecimal salary) {
    this.salary = salary;
  }

  public Integer getGender() {
    return gender;
  }

  public void setGender(Integer gender) {
    this.gender = gender;
  }

  public String getUsername() {
    return username;
  }

  public void setUsername(String username) {
    this.username = username;
  }

  public Integer getDeptId() {
    return deptId;
  }

  public void setDeptId(Integer deptId) {
    this.deptId = deptId;
  }

  @Override
  public String toString() {
    return "Employee{" +
            "id=" + id +
            ", salary=" + salary +
            ", gender=" + gender +
            ", username='" + username + '\'' +
            ", deptId=" + deptId +
            ", userName='" + userName + '\'' +
            ", noMapping=" + noMapping +
            ", unknown='" + unknown + '\'' +
            ", dept=" + dept +
            '}';
  }
}
